package org.f0rb.demo.model.user;

import java.io.Serializable;
import java.util.List;

/**
 * Class org.f0rb.demo.model.user description goes here.
 *
 * @author Administrator
 * @version 1.0.0 11-9-25
 */
public interface UserDAO {

    User get(Integer id);

    int countByUsername(String username);

    int countByNickname(String nickname);

    User getByUsername(String username);

    User getByUsername(User user);

    Serializable save(User user);

    void update(User user);

    void login(User user);

    void logout(Integer id);

    void delete(User user);

    List<User> list(User o);

    Long count();

    List<User> page(User o);
}
